local M = {};
setmetatable (M, {__index = _G;});
_ENV = M;


dofile ("libregister.lua");

local timer = require "tools.Timer";
local vector3up = UnityVector3Lib.up ();

local playerTrans = nil;

function start ()
	
	local playerGo = require ("objects.UnityGameObject").NewUnityGameObject ();
	-- local primitiveType = UnityGameObjectLib.PrimitiveCube ();
	playerGo:CreatePrimitive (UnityGameObjectLib.PrimitiveCube ());
	playerTrans = playerGo:GetTransform ();
	
end

function update (current_time, delta_time)
    
    timer.Update (current_time, delta_time);

    if (playerTrans ~= nil) then
    	playerTrans:RotateAxis (vector3up, 5, 1);
    end
end

return M;
